<?php
namespace Application\Controllers;

class User extends \Library\Controller\Controller
{
	public function __construct()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function __construct()");
		$this->setLayout("user");
	}
	
	public function indexAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function indexAction()");
		header("location: ".LINK_ROOT."user/login");
		die();
	}
	
	public function loginAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function loginAction()");
	}
	
	public function logoutAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function logoutAction()");
		session_unset();
	}
	
	public function inscriptionAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function inscriptionAction()");
	}
	
	public function passwordAction()
	{
		if (MOD_TRACE && MOD_TRACE_CLASS_Application_Controllers_User)
			var_dump("namespace Application\Controllers; class User -> public function passwordAction()");
	}
}
?>